#ifndef WIDGET_AI_H
#define WIDGET_AI_H



#include "players.h"
#include "gui.h"
#include <QtGui>



//! @brief Gui class for setting parameters of AI
class ai_widget: public QWidget
{

	Q_OBJECT

public:

	/** @brief Creates part of the gui
	*	@param pl AI player, for whom are the settings being configured, constraint: pl != 0
	*	@param nb button NEXT, constraint: nb != 0
	*	@param parent Qt parent
	*	@param flags Qt flags
	*/
	ai_widget( player* pl, QPushButton* nb, QWidget* parent = 0, Qt::WindowFlags flags = 0 );


private:

	//! player, for whom are the settings being configured
	player* plr;
	//! button NEXT
	QPushButton* next_b;
	//! combo box for choosing AI algorithm
	QComboBox* ai_alg_i;


private slots:

	//! @brief Qt slot that sets selected AI algorithm to the player
	void select_algorithm();

};



#endif